package com.sunshine.spring.sayhello;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试
 *
 * @Author: WeiHong
 * @Date: 2017/3/16 9:25
 */
public class SayHelloTest {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("/spring/bean.xml");
        SayHello sayHello = (SayHello) context.getBean("sayHello");
        sayHello.printHello();
    }
}
